package admin

import "xianzhi/service"

// 后台主页
// @author lixin
type IndexController struct {
	BaseController
}

func (c *IndexController) Index() {
	c.TplName = "admin/index.html"
}

func (c *IndexController) Welcome() {
	var p map[string]interface{}

	p = map[string]interface{}{}
	userNum, _ := service.GetUserList(p)
	c.Data["userNum"] = userNum

	p = map[string]interface{}{}
	orderNum, _ := service.GetOrderList(p)
	c.Data["orderNum"] = orderNum

	c.TplName = "admin/welcome.html"
}